#ifndef YOOHOO_XMPPCORE_PROTOCOLRELATION_H
#define YOOHOO_XMPPCORE_PROTOCOLRELATION_H

#include "xmppcore/export.h"
#include "xmppcore/protocolkey.h"

namespace yoohoo_xmppcore {

class YOOHOO_XMPPCORE_EXPORT ProtocolRelation {
public:
	ProtocolRelation(ProtocolKey enclosing, ProtocolKey embedded);
	void setEnclosing(ProtocolKey enclosing);
	ProtocolKey enclosing() const;
	void setEmbedded(ProtocolKey embedded);
	ProtocolKey embedded() const;
	bool operator==(const ProtocolRelation& other) const;

private:
	ProtocolKey _enclosing;
	ProtocolKey _embedded;
};

uint qHash(const ProtocolRelation& protocolRelation);

}

#endif
